package com.ls.data.service;

import com.ls.data.mapper.PhoneAttributionMapper;
import com.ls.interPojo.PhoneAttribution;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 段成
 * @date 2020/1/9 - 18:52
 */
@Service
public class PhoneAttributionService {
    @Autowired
    private PhoneAttributionMapper phoneAttributionMapper;

    public PhoneAttribution getDataByPhone(String phone) {
        return phoneAttributionMapper.getDataByPhone(phone);
    }

    public void insertData(PhoneAttribution insertData) {
        phoneAttributionMapper.insertData(insertData);
    }
}
